main_sdk_ver = "1.0.1"
csj_sdk_ver = "6.8.0.7"
gdt_sdk_ver = "4.15.40"
ks_sdk_ver = "3.3.76"
bd_sdk_ver = "5.391"
  
Pod::Spec.new do |spec|

  spec.name         = "JXMAdSDK"
  spec.version      = "#{main_sdk_ver}"
  spec.summary      = "聚鑫明广告聚合SDK"
  spec.description  = <<-DESC
                        聚鑫明广告聚合SDK，快速集成，优化收益。
                   DESC

  spec.homepage     = "http://www.liandaomobi.com"
  spec.license      = { :type => "MIT", :file => "LICENSE" }
  spec.author       = { "zhangjie" => "big.huacai@gmail.com" }
  spec.platform     = :ios, "13.0"
  spec.source       = { :git => "https://gitee.com/jxm-ad/ios-bid-adsdk.git",
                        :tag => spec.version
                       }
  
  spec.requires_arc = true
  spec.user_target_xcconfig =   {'OTHER_LDFLAGS' => ['-lObjC'],'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'}
  spec.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
    
  spec.subspec 'JXMMobileAdSDK' do |ss|
      ss.vendored_frameworks = 'JXMAdSDK/JXMMobileAdSDK.xcframework'
      ss.resources = 'JXMAdSDK/JXMMobileAdSDK.bundle'
  end
  spec.subspec 'JXMAdCSJ' do |ss|
      ss.vendored_frameworks = 'JXMAdSDK/JXMAdCSJ.xcframework'
      ss.dependency "Ads-CN/CSJMediation", "#{csj_sdk_ver}"
      ss.dependency "JXMAdSDK/JXMMobileAdSDK", "#{spec.version}"
  end
  
  spec.subspec 'JXMAdGDT' do |ss|
      ss.vendored_frameworks = 'JXMAdSDK/JXMAdGDT.xcframework'
      ss.dependency "GDTMobSDK", "#{gdt_sdk_ver}"
      ss.dependency "JXMAdSDK/JXMMobileAdSDK", "#{spec.version}"
  end

  spec.subspec 'JXMAdKS' do |ss|
      ss.vendored_frameworks = 'JXMAdSDK/JXMAdKS.xcframework'
      ss.dependency "KSAdSDK", "#{ks_sdk_ver}"
      ss.dependency "JXMAdSDK/JXMMobileAdSDK", "#{spec.version}"
  end
  
  spec.subspec 'JXMAdBD' do |ss|
      ss.vendored_frameworks = 'JXMAdSDK/JXMAdBD.xcframework'
      ss.dependency "BaiduMobAdSDK", "#{bd_sdk_ver}"
      ss.dependency "JXMAdSDK/JXMMobileAdSDK", "#{spec.version}"
  end

end



